<?php
	$name = $_SESSION['reg_user'];
	if(!isset($name) || empty($name)){
		$smarty->display("error.tpl");		
	}else{
		$smarty->display("logged.tpl");	
	}
?>